package com.blacktry.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blacktry.entity.model.TrainingProgram;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blacktry.entity.model.Vo.TrainingProgramVO;
import com.blacktry.entity.model.request.TrainingProgramRequest;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author blackTry
 * @since 2021-12-12
 */
public interface TrainingProgramMapper extends BaseMapper<TrainingProgram> {
    Page<TrainingProgramVO> findTrainByGrade(TrainingProgramRequest trainingProgramRequest, Page<TrainingProgramVO> trainingProgramPage1);

    @Select("select distinct grade from training_program")
    List<Integer> selectGrade();
}
